package com.fdd.furns.dao.impl;

import com.fdd.furns.dao.AdminDAO;
import com.fdd.furns.dao.BasicDAO;
import com.fdd.furns.entity.Admin;

public class AdminDAOImpl extends BasicDAO implements AdminDAO {
    public boolean login(String username, String password){
        String sql = "select `id`,`username`,`password` from admin where username = ? and password = md5(?)";
        return querySingle(sql, Admin.class,username,password) != null;
    }
}
